<form id="login" action="<?php echo url_for('login/index') ?>" method="post">

    <?php if ($sf_user->hasFlash('error')): ?>
        <div class="flash error"><?php echo $sf_user->getFlash('error') ?></div>
    <?php endif; ?>

    <div class="section">
    
        <h2>Login</h2>
        
        <div class="sectionBody">
            <div class="row">
                <div class="label"><span class="title">Username</span></div>
                <div class="field"><input type="text" name="username" /></div>
                <div class="clear"></div>
            </div>
            <div class="row">
                <div class="label"><span class="title">Password</span></div>
                <div class="field"><input type="password" name="password" /></div>
                <div class="clear"></div>
            </div>
        </div>
    
    </div>
  
    <input class="submit" type="submit" value="Login" />
    
</form>